<?php
class ControllerCookie{
	public function __get($name){
              
              if(isset($_COOKIE['__ZONE__'.$name]))
		return stripslashes($_COOKIE['__ZONE__'.$name]);
              return '';
	}
	public function __set($name,$value/*,time*/){
		
		setcookie('__ZONE__'.$name,$value,time()+31536000,'/');
		
	}
	public function remove($key){
		$_COOKIE['__ZONE__'.$key]='';
		setcookie('__ZONE__'.$key);
	}
}
?>